-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Prevent high CPU usage by only running in astro projects #14704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
|
@arunvisvajeetrs |
| if (ts.sys.readDirectory) { | ||
| const hasAstroConfig = | ||
| ts.sys.readDirectory( | ||
| currentDir, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest checking that this work inside monorepos!
|
Looks like the preview release is not made against the correct package. Could that be because changesets are not configured correctly? |
the changesets should be fine (we've released these packages before from changesets), does pkg-pr-new needs config? |
|
It shouldn't, we detect packages by calling changesets and pnpm: https://github.com/withastro/astro/blob/main/.github/workflows/preview-release.yml |
Ok, I'll test it |
Changes
Closes #14641
Testing
Docs
No docs needed. This fix only improves performance. Users don't need to change anything.